package com.flying.invest.assets.model;

import com.flying.common.util.Codes;
import com.flying.framework.annotation.Param;
import com.flying.framework.data.Data;
import com.flying.framework.data.DataSerializable;
import com.flying.framework.metadata.Meta;

@SuppressWarnings("serial")
@Meta(id="i_assets_block",title="资产板块", table="i_assets_block", primaryKeys={"block_id"})
public class AssetsBlock extends Data implements DataSerializable {
	public final static String ENTITY_NAME = "i_assets_block";
	
	public final static String BLOCK_ID = "block_id";
	public final static String NAME = "name";
	public final static String CATEGORY = "category";
	public final static String PARENT_ID = "parent_id";
	public final static String REMARKS = "remarks";
	
	
	@Param(value=BLOCK_ID,   required=true,   maxlength=0,	desc="板块ID" , generator=Codes.AUTO_INCREMENT)
	private Long blockId;
	
	@Param(value=NAME,   required=true,   maxlength=100,	desc="名称" )
	private String name;
	
	@Param(value=CATEGORY,   required=true,   maxlength=0,	desc="大类（0：股票；1：基金）" )
	private Integer category;
	
	@Param(value=PARENT_ID,   required=false,   maxlength=0,	desc="上级板块" )
	private Long parentId;
	
	@Param(value=REMARKS,   required=false,   maxlength=100,	desc="说明" )
	private String remarks;
	
	
	public Long getBlockId() {
		return this.blockId;
	}
	
	public void setBlockId(Long blockId) {
		this.blockId = blockId;
	}
	
	public String getName() {
		return this.name;
	}
	
	public void setName(String name) {
		this.name = name;
	}
	
	public Integer getCategory() {
		return this.category;
	}
	
	public void setCategory(Integer category) {
		this.category = category;
	}
	
	public Long getParentId() {
		return this.parentId;
	}
	
	public void setParentId(Long parentId) {
		this.parentId = parentId;
	}
	
	public String getRemarks() {
		return this.remarks;
	}
	
	public void setRemarks(String remarks) {
		this.remarks = remarks;
	}
	

}